﻿using UnityEngine;
using System.Collections;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Net;
using System.IO;
using System.Threading;
using System.Diagnostics;
using System.Reflection;
using UnityEditor;

public static class TestSimpleHttpServer
{
    public static int port = 1234;

    [MenuItem("Test/StartSimpleHttpServer")]
    public static void StartHttpServer()
    {
        SimpleHTTPServer.StartHttpServer(System.IO.Path.GetFullPath(Application.dataPath + "/.."), port);
    }

    [MenuItem("Test/StopSimpleHttpServer")]
    public static void StopHttpServer()
    {
        SimpleHTTPServer.StopHttpServer();
    }
}
